Discover curl unknown ssl protocol error in connection, include the articles, news, trends, analysis and practical advice about curl unknown ssl protocol error in connection on alibabacloud.com
This article is mainly to share with you PHP in the Curl HTTPS skip SSL authentication error analysis and solutions, hope to help everyone.
function Get ($url = ', $cookie = ') { $ch = Curl_init (); curl_setopt ($ch, Curlopt_url, $url);
Due to vulnerabilities such as "OpenSSL Heartbleed" and "SSLv3 man-in-the-middle attack", many platforms have disabled SSLv2 and SSLv3 support, some clients that use SSLv2, SSLv3, or earlier versions are not supported, such as the WeChat public
This article provides a detailed analysis of the CURL status code list. For more information, see
CURL status code list
Status Code
Status reason
Explanation
0
Normal access
1
Incorrect protocol
Background: The Game Interface uses the PHPcURL extension to perform request operations. However, the requested server often does not respond or times out for no reason. In short, it means that no response data is received after the request, at this
CURL status code list
Status Code
Status reason
Explanation
0
Normal access
1
Incorrect Protocol
Unsupported protocol. This version of cURL does not support this protocol.
2
Initialization
This article introduces the PHP curl_errno function described by the cURL function library error code.
Background:The game interface uses PHP cURL extension for request operations. However, the requested server often does not respond or times out
Curl Status Code List
Status code
Status Reason
Explain
0
Normal access
1
Wrong protocol.
Unsupported protocol. This version of Curl does not support this agreement.
2
Background:The game interface uses PHP cURL extension for request operations. However, the requested server often does not respond or times out for no reason. In short, the data cannot be returned after the request. At this time, it cannot be said
As for my problem, the returned value of curl_errno () is 6. based on the above data query, we know that the reason is Couldn 'tresolvehost. thegivenremotehostwasnotresolved. this is the cause of "failed host resolution". now, I know how to solve
Phpcurl error code list (collection)
This article collects some curl error codes with detailed instructions. For more information, see.List of curl error codesCURLE_UNSUPPORTED_PROTOCOL (1)-the URL you send to libcurl uses a protocol not
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.